package demo;

public class Demo07 {
    public static void main(String[] args) {
        long n =0b01101110_10101011_01110110_11011010_01111011_11011101_01010110_11011011L;
        System.out.println(Long.toBinaryString(n));
        n = 0x6eab76da7bdd56dbL;
        System.out.println(Long.toBinaryString(n));

        long m = 0xffL;
        long b1 = (n>>>56) & m;
        System.out.println(Long.toBinaryString(b1));

        long b2 = (n>>>48) & m;
        System.out.println(Long.toBinaryString(b2));

        long b3 = (n>>>40) & m;
        System.out.println(Long.toBinaryString(b3));

        long b4 = (n>>>32) & m;
        System.out.println(Long.toBinaryString(b4));

        long b5 = (n>>>24) & m;
        System.out.println(Long.toBinaryString(b5));

        long b6 = (n>>>16) & m;
        System.out.println(Long.toBinaryString(b6));

        long b7 = (n>>>8) & m;
        System.out.println(Long.toBinaryString(b7));

        long b8 = n & m;
        System.out.println(Long.toBinaryString(b8));


        long s = (b1<<56 | b2<<48 | b3<<40 | b4<<32 | b5<<24 | b6<<16 | b7<<8 | b8);
        System.out.println(Long.toBinaryString(s));

    }
































}
